package com.east.controller;

import com.east.mapper.DicValueMapper;
import com.east.result.Result;
import com.east.service.DicValueService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/api/dicValue/")
@RestController
public class DicValueController {
    @Resource
    private DicValueService dicValueService;

    @GetMapping("{typeCode}")
    public Result getTypeValueAndId(@PathVariable("typeCode") String typeCode) {
        return dicValueService.getTypeValueAndId(typeCode);
    }
}
